package cn.faifai.common.exception.file;

import lombok.Data;

@Data
public final class FileHashConflictException extends RuntimeException{
    /**
     * 错误码
     */
    private Integer code;

    /**
     * 错误提示
     */
    private String message;

    /**
     * 详细信息
     */
    private Object data;

    /**
     * 错误明细，内部调试错误
     */
    private String detailMessage;
    /**
     * 空构造方法，避免反序列化问题
     */
    public FileHashConflictException() {
    }

    public FileHashConflictException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public FileHashConflictException(Integer code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

}
